package com.homework.Demo6_14.Work1.h1;

public class Print implements InterfaceA, InterfaceB{
    @Override
    public void printCapitalLetter() {
        int count=1;
        System.out.println("输出大写字母表：");
        for (int i=65;i<=90;i++){
            if(count%5==0){
                System.out.println((char)i);
            }else
            System.out.print((char)i);
            count++;
        }
    }

    @Override
    public void printLowercaseLetter() {
        int count=1;
        System.out.println("输出小写字母表：");
        for (int i=97;i<=122;i++){
            if(count%5==0){
                System.out.println((char)i);
            }else
            System.out.print((char)i);
            count++;
        }
    }
}
